Don't break async-signal-safety in rrpreload functions.

Resolves #566.