Copy socket type/domain to new socket in accept()