RngComps: Fix thread-safety checker warnings. See merge request !57001
mentioned in commit 3e06f063
mentioned in commit 53c09836