Added resource locks to the metadata extractor tests.  THis should prevent the travis build from failing so often.