added some Random.atfork in critical sections trying to cover some bugs.

minor fix related to issue: "PID check failed. RNG must be re-initialized after fork(). Hint: Try Random.atfork()"