changed lock/unlock test