Enable layer locking in offline mode

Issue #134