Implementing the instance method #bind for Socket. (JRUBY-7200).
This method can receive an Addrinfo instance and bind it.