This differential implements class that exposes GlobalDBSingleton API to be safely used in iOS native code since it implements iOS-specific synchronization. It does two things: 1. If there are multiple threads trying to update database and multithreading is not enabled, then all operations are executed on the main thread. 2. If there are multiple threads trying to enable multithreading all calls are executed in the main thread which makes them idempotent.