added test for lock with no time out