socket.m: Minor cleanup

This should make the init behavior the same for --enable-threads and
--disable-threads.