retry master detection after stale timeout

fixes #SERVER-281