unix: improve uv_guess_handle() implementation

Make it understand FIFOs, character devices and sockets.