Changed Lock::__destruct() to use Lock::release() instead of calling the driver directly.