he lock directory method.  This is good because `mkdir` is
    atomic at the system call level, so it's thread-safe.
    r