fixed PY-13296 Pycharm UI unresponsive

do not lock UI in case we just want to send package statistics
Merge remote-tracking branch 'origin/master'
fix dumb mode tasks run twice in headless mode