Check for main thread only during first +initialize call