When is a locally separable connected space separable?