Introduce an fdref type.

fdref exports read/write locking, and is useful for layers above fd
but below applications.
Use fdref in http_parser.