match.c (lock_unlock_statement, [...]): Fix potential double freeing.