core: improve CPU usage of the TCP_MAIN process

	* iterate through and close connections at most once per second