A simple garbage collector which collects resources dropped on a realtime thread and safely deallocates them on another thread