Lock and unlock a page's scroll position.