clipboard: make sure all sync happen on the main thread