tcp_server: call prepare function before bind

(so user can use 'SO_REUSEADDR' option in tcp_server)