Fix #2971: we had lost the non-blocking flag on Handles created by openFile