Even if a test chain doesn’t MineBlocksOnDemand (aka consensus.fPowNoRetargeting = false), it may make sense to allow the rpc call setmocktime for that chain.
For example, it could be allowed by default for testnet3 (aka “test” on bip70). Or at least this is what I think MarcoFalke wants from our last conversation on IRC. For more context see #16770 (comment)
As a bonus, unlike consensus.fPowNoRetargeting, the new field m_allow_set_mocktime gets fully out of consensus code in the sense that people “greping” from consensus/params.h don’t need to necessarily look at rpc call setmocktime in rpc/misc.cpp if that’s not what they’re looking for. One less read to Consensus::Params. Not sure if that last part makes sense to anyone else but me as reasons to get this merged.