Toggle stm in engine thread
Changing the side to move out of sync (i.e. in the GUI thread) sometimes
led to starting of a spurious search, when a 'force' command preceding
the moves was still queued. We now have the dummy command that was there
to release the engine thread from waiting for the queue also toggle stm.
This required a slightly different logic for handling ponder hits in
the GUI thread. These can still safely toggle stm there, as the engine
won't stop pondering before it gets the ponder hit.
To make sure incoming empty lines will not wreck this scheme, these
are now ignored.