Drop GIL while doing IO

Signed-off-by: Paul Brook <paul@nowt.org>