mod. have check_lock return false on 'ls' fail.

Change-Id: Ibe0f51cfaf263a6254caaa79f3d00c5268a1fe79