As discussed in T69212: Outliner Sync Selection: Use general update method, after selection changes, 3 function calls need to be made to tag despgraph, notifiers, and outliner for syncing. This adds two functions, ED_object_select_update and ED_sequencer_select_update to simplify operator code.
This will also be extended to edit bones and pose bones.