Update replication.c

In function syncWithMaster, if aeCreateFileEvent fails, function returns but fd of tmpfile doesn't close