The submitted post is interesting because a lot of us prefer they/them for the gender-neutral 3rd person singular pronoun[0], and it raises an interesting corner case. I had to think about it for a bit, but I think "themself" sounds most natural to me.
[0] Why default to "he" when gender is unknown? Is correct number but incorrect gender better than "they", which is incorrect number but correct gender? "They" is natural to almost all native English speakers and has been used in that capacity in writing since at least Chaucer.
edit: Hm, now I wish I hadn't downvoted. Sorry about that. I suppose it's helpful for non-native HN speakers to know the "correct" word for academic writing, as much as it irritates me that that is what's considered correct.