Fix ncsvc crash

Somehow the lock for this one has gone missing for quite some time.
Its finally been run against a glibc build for catching such things.