>Are there non-local locks?

Yes, there should be.

>If there was one, what would that mean?

We're working on distributed lock manager, isn't it? Local lock means that it was opened in current process. Non-local lock opened somewhere else.

Anyway this is not atomic. Will remove it.