Added unbind support.
Removed socket locking on bind.