One difference between yours and mine is that yours are all multithreaded, with the failing ones being gnu-thread-multi. I don't know if that has any relevance, but hopefully others can comment on that.
Update:
I also tested under an Ubuntu version 18 with the system perl, version 5.26.1 x86_64-linux-gnu-thread-multi, and could not reproduce.