Frozen bread dough that has been thawed out in the refrigerator for five days
Safe, yes.  Some recipes call for intentionally keeping the dough in the fridge for at least several days.  However, keep in mind that the flavor may be altered.  The yeast makeup of the dough may change over time.  Generally the dough will become more sour the longer it sits.