def lock_configuration(self):
self.open = False<EOL>
Do not allow calls that should not be accessible by the user.

        This includes :meth:`.Config.register_option` and
        :meth:`.Config.unregister_option`.