add const to jack_deliver_event() for no particular reason
force zero return for thread ID for non-external clients, since internal/driver clients have no separate thread