Brazil backs away from virus brink as deaths top 400K