Seed the randomness a bit

cherry-picked from https://github.com/plexinc/plex-home-theater-public/commit/8247082cd
Protect m_files with a lock

cherry-picked (and improved) from:
* https://github.com/plexinc/plex-home-theater-public/commit/f1085304f