What, precisely, is 'atunci' doing in this sentence? Is it acting an intensifier?
More or less. You could translate it by “then:” We go then when we want to, though it sounds a bit weird.
"we go whenever we want" is better English and is accepted.
Is "atunci" obligatory here?
No, I modified the acceptable answers. Thank you for reporting this!!