Fixes for safe mode caused by detection of an invalid fork.

Difficulty differences should no longer cause safe mode to be triggered under valid conditions caused by the differences in the difficults between algos