Add the ability to downgrade a write variant of the cglocks.
We should be using a cg_wlock initially in generating stratum and gbt work before downgrading the lock.