Make G__FastAllocString cache thread safe

When using C++11, the cache used by G__FastAllocString utilizes
a non-locking thread safe circular buffer.