add - more logging to check_lock method.

Change-Id: Ida5683e91eed68d409e800be4f7e6c50306862fa
add - write deploy user name to lock file.

Change-Id: Iebe501075538da5a138d3855d818c14dbfd5cf7c