fix for IO#read_nonblock

Addresses Maglev/maglev#338