sock: remove a faulty if condition (incorrect copy&paste).
Enable the detection of the MTU size on MacOS.
sock: code cleanup.