Remove lock files before adding new users.
Fix syntax and add some debugging info.