Redefine recompose_vapp. Add mutex to create_vm to ensure parallel create_vm calls don't collide