Fixed the userdb mutex so that it actually works when running in a multithreaded environment. This fixes 30 errors in self-test. Checkin blessed by mast and per. Rev: server/base_server/prototypes.pike:1.40