Corrected -bf-thread-safe

Enabling thread safety now passes some simple tests.