fix - logic around parsing lock file name.

Change-Id: I190cbf8ed6832850ea7474c2499d899b3275c6cc