make the PhpcrMenuProvider synchronized instead of using the container

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | see travis
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

we should avoid unnecessary dependencies on the DI container.