+1, this is a terrible hack. My thinking here is that it was not worth doing something fancy since we want to get rid of this ASAP anyway, to move locking into the kernel entirely.

If y'all think this smells too bad, we can revisit this later this week and refactor into something nicer.