kprobe-coverage: Refactor locking (hopefully safer now)