Fix mod/lock and mod/leader return error codes.