BUG: make seed, randint and shuffle threadsafe
Merge pull request #5390 from sturlamolden/mtrand-bugfix-threadsafe

BUG: Make RandomState.seed, RandomState.randint and RandomState.shuffle threadsafe