synchronizeDynamicModules: Flush ZODB cache.

Should fix most of the cases where reloading components cause breakage.
There is still a race condition between a transaction's cache being
actually flushed (which can only happen at transaction boundaries) and
another transaction doing the actual class reload, which will
immediately affect all the started transactions in the same process.
10 jobs for master in 0 seconds
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-Master

00:45:19

passed ERP5.PerformanceTest-Master

00:30:59

failed ERP5.UnitTest-Master

01:53:25

failed ERP5.UnitTest-Master.Medusa

01:10:28

passed SlapOS.Eggs.UnitTest-Master.Python2

00:17:57

passed SlapOS.Eggs.UnitTest-Master.Python3

00:09:53

failed ERP5.UnitTest-Master

01:05:19

passed SlapOS.Eggs.UnitTest-Master.Python2

00:21:48

passed SlapOS.Eggs.UnitTest-Master.Python2

00:13:37

passed SlapOS.Eggs.UnitTest-Master.Python3

00:17:32