logging: NullHandler optimisation.
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index e1dbbc0..6baf9b4 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -1656,9 +1656,15 @@
     a NullHandler and add it to the top-level logger of the library module or
     package.
     """
+    def handle(self, record):
+        pass
+
     def emit(self, record):
         pass
 
+    def createLock(self):
+        self.lock = None
+
 # Warnings integration
 
 _warnings_showwarning = None