locate a command by searching the PATH (thread-safe)