LPS-51191

There are a couple of things in this pull that will be fixed in the next PR for this story:

The calls to the WF capability have been hardcoded into the CapabilityRepository.
Duplication inside the RepositoryWrappers.
General ugliness in the LiferayWorkflowRepositoryWrapper (mainly the FileVersionReference class).
For (1), that code will be moved into the wrappers in the next PR. I've decided to put the code temporarily in the CapabilityRepository to not clutter this PR with too much stuff.

(2) and (3) are a consequence of DLFileEntryLocalService#updateFileEntry calling the workflow when doing auto check in. That is fixed in this same PR, at https://github.com/sergiogonzalez/liferay-portal/commit/224a6aa0e0fd4fd94bce9bbadd393d94a9c4616f the next PR will clean up the wrappers and remove all duplication.