Changed locking style. Now, if named_setup figures out that some
other process has done the work it was going to (because it started _after_ this process started trying to grab the lock), it exits. This way, we avoid doing too much extra work.
Showing with 47 additions and 5 deletions