lib/Shell: added lockfile-creation and test

Also fixed an error in config.vala.in