Fixed invalid Errno::EAGAIN handling in Stream#syswrite
Merge pull request #126 from stopiccot/master

Fixed invalid Errno::EAGAIN handling in Stream#syswrite
Ensure monitor is closed after task is resumed.