Infer socket stream_type from type and address family.

Special case: stream_type for `socketpair()` is "generic_socket" in PHP. This fix recognizes it as "unix_socket".
stream_get_meta_data() stream_type tests.