threaded message queue in BCB

A multithreaded message queue is implemented with the help of events.
One thread is only reading and anotherone is only writing.
The aim was not preventing multiple access but suppress polling for a state.