- Replaced two separate Lock/Unlock pairs with single Lock/defer Unlock - Both p.ctx assignment and p.restoreStateLocked() now run under same lock hold - Prevents observing partially-initialized state between the two operations
- Replaced two separate Lock/Unlock pairs with single Lock/defer Unlock - Both p.ctx assignment and p.restoreStateLocked() now run under same lock hold - Prevents observing partially-initialized state between the two operations