Fix behaviour of index_add / atomicAdd(bool,bool) (#85100)
This fixes one of the first PyTorch issues I opened, as it bit me again
Fixes https://github.com/pytorch/pytorch/issues/54317
Pull Request resolved: https://github.com/pytorch/pytorch/pull/85100
Approved by: https://github.com/ngimel