Patch for Frameworks: LockBeforeUnlock the new way (1/2)