hardware.state: add locking methods