Do not register tests module when pool is not started for testing

Closes #6846
13 jobs for !213 with topic/default/trytond-pool-register-tests in 15 minutes and 3 seconds (queued for 2 seconds)
merge request