Added failing test to exercise failure when forking in non-main thread.
Use singleton class level instance variable to hold main dynamic hash rather than Thread.main.
Merge pull request #4 from mjtko/fix/fork-in-non-main-thread

Fix when fork used in non-main thread