OAK-1056: Transient changes contributed by commit hooks are kept in memory

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