Lock counter



<!---
@huboard:{"order":115.125,"milestone_order":136.5,"custom_state":""}
-->

%s/uint32_t/u32/g for consistency