Fixed problems handling passive connections in Remoting #2878

- Fixed potential race in EndpointWrite when TakeOver is processed
- Reenabled accidentally disabled gremlin due to changed defaults
- Fixed EndpointRegistry incorrectly handling passive connections