[backend] bs_signer: don't serialize before checking exit/restart

also support $BSConfig::signer_maxchild