pgresult_handle reorganization: make the raw member private

And throw pg_exception if the raw member is changed to a result
with errors.
malloc_handle: make raw member private
pgconn_handle: make raw member private
dir_handle: make raw member private
fd_handle: make raw member private