Apply repl_auth_resync patch