Test of non-recursive NestedDict.lock_close() method.