Very simple thread-safe channels with timeout