OAK-571 - Limit usage of headRevId in sync collection to non-branches

Simplified commit and headRev fetching in light of changes for OAK-571

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1439323 13f79535-47bb-0310-9956-ffa450edef68