Fix socket#bind returning false incorrectly