freeing locks acquired by kernel thread?