Use a nonce2 offset variable for both gbt and stratum to consolidate requirements on work generation.
Rename pool gbt_coinbase variable to coinbase to combine it with the stratum coinbase data.
Reuse just the one pool coinbase variable in stratum, avoiding more string functions and storage in gen_stratum_work on each work generation.