locks: Initialize lock fields in handles, include lock fields in headers for scoped memory.