(os): add a not-so-work producer-consumer solution.

Should use https://hg.python.org/cpython/file/2.7/Lib/Queue.py