Fix ReplaySubject termination race
ReplaySubject testRaceForTerminalState()
Merge pull request #1150 from benjchristensen/replay-fix

Fix ReplaySubject Terminal State Race Condition