Do not start threads before the end of the evaluation of trytond.application

When uwsgi forks workers it can happen that python execute the code from one of the launched thread (eg: the cache listener or trytond-status). In that case python will keep executing the thread and never switch to the main thread. Thus preventing to listen for incoming connections.

Closes #12758 (closed)

Merge request reports