Some bugfixes in lock/unlock demo

...