[Bugfix] Fix idle CPU usage

  • Fix high idle CPU usage of libertem-server, caused by incorrect busy waiting (#1707, #1708).