move locking and unlocking into an anonymous function so we can ensure that unlocking happens
move locking and unlocking into an anonymous function so we can ensure that unlocking happens

control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced