Smaller detail: (un)lockNotebook() could be more descriptive name to avoid confusion with those two notions.