Checking `dispatch_get_current_queue` is not a reliable way to check if you are on the main thread.