Fixed incorrect arguments in lock-specs.js that were causing tests to fail

Was passing the wrong parameter type.