Description
Currently ImporterImpl in oak-jcr checks the lock status of the target node and throws a LockException when it is locked. To perform this check, the session is first refreshed and may cause the underlying branch to be rebased. A related issue was fixed in OAK-1294, but the rebase will still happen when there were concurrent changes.
To further reduce the number of rebases, the Importer should only check the lock status if the node in question is not new. A new node indicates that it was possible to create the node beforehand, hence it cannot be locked.