KRACOEUS-8575:added validation to check if parent is locked before allow...

...ing syncing from child proposal
please use PessimisticLockService.getPessimisticLocksForDocument()