safe pop in garbage collector thread
set gc pid on start
protect gc.start with a thread lock
Merge pull request #440 from minrk/pop-safe

safe pop in garbage collector thread