Convert the ch_lock to cg_lock.
Move the stratum and GBT data to be protected under a new cg_lock data_lock.
Add intermediate variants of cglocks that can be up or downgraded to read or write locks and use them for stratum work generation.
Convert gbt_lock to a cg_lock.