mod. _create_lock creates the lock on deploy target.

Change-Id: I507defab854483adb0d90a4adc5a908f576f7840