Update __wt_schema_worker so that it can operate on names.

It can now traverse either names, or files.