Made internals of lock "private" (for C++).