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

Signed-off-by: Benety Goh <benety@mongodb.com>