Toilets here come with a collar of very dark caulk that Thais rarely use . Absolutely great for plugging gaps and easy to remove.See if you can find some. I ve been using 8 years ,left over from when house built..never dries out.
Plugged a small hole in 2500 litre water tank and hasn't leaked a drop.