Fixed: Locked tickets don't unlock when customer closes ticket (bug#9678).
Squashed commit of the following:

commit 189ffd15be3cc1dbe85eedac40c27b4cae0f5c96
Author: s7design <otrs@s7designcreative.com>
Date:   Wed Jan 29 18:52:20 2014 +0100

    [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