Support structs/unions with named fields in frontend.
Prove refinement lemmas for locks.