LockeableEntity compilation fix and flags protected