[debug] Log a warning if the reader thread is waiting for the main thread