Should the lock be locked before changing level, for the case where the log level is configurable during runtime?