lockable: fix __COUNTER__ macro to be referenced properly