core/socket: close TCP server fd when spawning

If server fd is not closed, it is not possible to restart uwsgi if the spawned process is still running as it keeps the address/port bound.