NXP-14440: Invalidate cache when locking/unlocking the current Document.