England's Callum Tarren has staged a superb recovery to hold a two-shot lead at the halfway stage of the Bahrain Championship.