Make SCOPED_LOCK use RAII_VAR.