Implemented check on sync with ourselves

Conflicts:
	src/redis.h
	src/replication.c