Add wait()/async_wait() operations to sockets and descriptors.

These operations support reactor-style operations. The null_buffers
class is now deprecated.