Refactor PageLock to namespace