Setting last_io_time in ns_add_sock() and ns_connect()