Add locking to pyramid and monolith.