Having const and non-const methods with the same name, one of which is realtime-safe and the other of which is not sounds like a recipe for bugs.

I suggest you rename them to 'getGainsNonRT' and 'getGainsRT' or something similar that reflects the realtime-safety of each method, or just remove one of them.