Checking `dispatch_get_current_queue()` is not a reliable way to check if you're on the main thread.