return a proper status code when trying to set the same lock status