Closes the database, releasing lock.

def close(self):
        """
        Closes the database, releasing lock.
        """
        super(LockingDatabase, self).close()
        if not self.readonly:
            self.release_lock()