Slave goes through 'switchToSlave' process on every 'masterIsElected' event

This PR fixes the problem of slave having stale epoch in `RequestContext` and `RequestContextFactory` after a quorum loss and master reelection.