Change socket check to be sun_path[0] != '\0'

Fix for SERVER-8492