Fix logic bug in driver_set_nonblock_state.