[Bug 9678]

Locked tickets don't unlock when customer closes ticket

Added code for set lock parameter of ticket when check state of ticket; on close state parameter lock is setting to unlock