Lock counter

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

We're following the Linux Kernel Coding Style (with the exception that we use spaces instead of tabs), so we should change these to C89 style comments rather than C99.