trace: Clean up the "try to update atomic until it worked" loops