We should be using a cg_wlock initially in generating stratum and gbt work before downgrading the lock.