Another copy of the master_in_recovery check. Not sure that's very elegant, but I don't think we have much choice.