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

(cherry picked from commit 3a7ddd5f149eab1b592647f5c6f005565812ddf0)
WICKET-5733 ContextNotActiveException thrown when using both CDI & Native WebSocket

Add a check for WebSocketMessageBroadcastHandler too

(cherry picked from commit edc912d01ed430c480fbd0f611165d1273d0e333)