bitcoinmerges 1756406156 [bitcoin] Merged PR from kevkevinpal: threading: reduce the scope of lock in getblocktemplate https://github.com/bitcoin/bitcoin/pull/33264