Only do network writes on the handler thread in nio wrappers
Fix reentrance bug when writing in connectionOpened.