Generate unit tests for LOCK ops that touch flags We currently don't have unit tests that for LOCK operations and flag setting. We hit a bug that these weren't generating flags correctly that went unnoticed.