=rem #3867 Make sure endpointWriter is terminated before ungate

* actor name [endpointWriter] is not unique
* The problem was that the test used 100ms until ungate and
  that made it possible for the endpointWriter to not be
  completely terminated (and removed) before Ungate and
  new Send in idle state, which created new endpointWriter
* I could reproduce it with a sleep in EndpointWriter.postStop
* The solution is to start the scheduled Ungate after Terminated
  has been received
Merge pull request #2001 from akka/wip-3867-endpointWriter-patriknw

=rem #3867 Make sure endpointWriter is terminated before ungate