X11OutputOrderWatcher: fix potential out of order in pendingOutputOrder
The screens in the map don't necessarily follow the index order when range-based loop is used.
The screens in the map don't necessarily follow the index order when range-based loop is used.