The gear is electrically operated on the B-17, and quite slow compared to hydraulic gear on more modern types. I don’t believe that the aircraft could climb much on two engines regardless of the gear position,
What evidence is there that two engines were shut down? The previous mention of low pitch prop blade angles on the number three prop suggest blades not quite feathered, not blades in fine pitch.