clean up lock methods to return a Result object that makes it clear whether the lock had been acquired for the request.