Check nightly build folders the same way we check inbound

What is the purpose of the lock here? I didn't think mozregression was multithreaded?