OP_WRITE optimization and simplification of WriteHandler

I'll clean up the commit history.

Fixes #4145
This comment seems like a left-over. It is not valid, since super call doesn't register with selector. Registration still done lazily on IO thread.