Active Object: A simple example of a thread-unsafe class