Fixed Session lock on creating world

Needs to be tested on mac/linux, although it should work.