mount.nfs: Always close the socket at the end of getport()