configure: Express atomics/thread deps through the dependency system