Added classes 'scoped_mutex' and 'scoped_spinlock'.