Base r/w lock