Lock some classes

To add features to these classes, one should use the provided extension points and not using inheritance.

Locking the classes makes it easier to keep BC, as you force people to use the provided extension points.