Reduce code duplication by defining gg_fd_set_nonblocking