fix up "base: memory barriers in lock implementations"

Issue #692