Search namespace and ancestors for matching autoload.