Use sb-threads:with-mutex wherever possible, protect atomic sections with without-interrupts.