Ketosis itself doesn't ensure that you are not burning muscle mass - it's having enough protein coming in whoch does that. The programme is designed to make sure that you get enough protein but if you did a DIY VLCD you would find it difficult to get enough protein and would be burning muscle tissue. That's one of the reasons that DIY VLCDs are dangerous.