Failing to construct identical lock with certain arguments (test)