Workarounds for CMFCore 2.7.0 URLTool REQUEST acquisition issues

After updating Products.CMFCore we had issues on sites where URLTool was registered as ISiteRoot.

In the case of ERP5, we don't really need portal_url.getPortalObject(), this changes to use ERP5Site.getPortalObject(), while at the same time doing something so that portal_url.getPortalObject() also works.

See https://github.com/zopefoundation/Products.CMFCore/pull/126 for more details

See merge request !1758
15 jobs for master in 0 seconds
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-Master

01:16:06

passed ERP5.PerformanceTest-Master

00:26:54

failed ERP5.UnitTest-Master

02:58:51

failed ERP5.UnitTest-Zope2

04:34:02

passed SlapOS.Eggs.UnitTest-Master.Python2

35:30:55

passed SlapOS.Eggs.UnitTest-Master.Python3

00:17:24

passed Wendelin.UnitTest-Master

05:08:09

passed ERP5.CodingStyleTest-Master

00:53:08

passed ERP5.PerformanceTest-Master

00:27:02

passed ERP5.UnitTest-Master

01:16:38

failed ERP5.UnitTest-Zope2

04:46:20

passed SlapOS.Eggs.UnitTest-Master.Python3

00:13:59

passed SlapOS.Eggs.UnitTest-Master.Python3

00:12:58

passed SlapOS.Eggs.UnitTest-Master.Python3

00:13:49

passed Wendelin.UnitTest-Master

03:55:27