Clean projects in a background job when project settings' change

Cleaning the projects in the UI Thread was causing UI freeze. The
fix is really simple (and heavily inspired by the Eclipse ``CleanDialog``
component).

No tests are included, but if you think it's worth I can surely create
a couple of unit tests for ``ProjectsCleanJob``.

Fixes #1001527

backport to _release/3.0.x_