Fix genreflex problem with fgIsA

Fixes a problem with using genreflex to create a dictionary for a class that inherits from TObject. The problem was triggered by the thread-safety changes.
Depends on previous pull request  (#12).