Unbind socket with real endpoint when binding by wild-card * address

Ported from development master.