Abort the create_socket test if socket creation fails.

MFC after:	1 week
Reported by:	Coverity
CID:		1232756