lock: Set ticket lock on ticket-view

Since the automatic lock was being acquired but not passed to the autoLock system, the automatically acquired lock was not being release on away navigation.

This patch addresses the issue by passing the automatically acquired lock id to the autoLock system on ticket-view page load and change the ::Init() method so that the lock id is not cleared with the ::Init() method is called by the page load.

Fixes #1434