WICKET-5740 Provide a way to adapt the lock timeout based on the page class/id

(cherry picked from commit 3a7ddd5f149eab1b592647f5c6f005565812ddf0)