After the fix on https://alfresco.atlassian.net/browse/APPS-766 the ownership is not evaluated anymore in the enterprise, as the overridden method has been moved inside the PermissionAssessor class and a dead method has been left inside the DbQueryEngine (hence it's still compiling).
Please put back the logic, maybe using a new PermissionAssessorEnterprise, and remove the dead code from community release. Please add a specific unit test to validate the logic of this new object for owner evaluation (standard node / nodeWithOwnership).