libpfrng: protect fast RNG with mutex (making it thread-safe)