Detecting finite flat dimension of modules via iterates of the Frobenius endomorphism