Instead of busywait (sleep(0)), sleep for a few msec when paused/waiting.

This will reduce spikes of CPU usage. The sleep interval is configured
via KINETIC_CONNECTION_SLEEP_MSEC in kinetic_types_internal.h, and could
later be handled via callbacks.