Add Protocol methods set_nonblocking and reset_nonblocking