Emit 'drain' event if write before socket open.