Make session_manager use proper synchronization primitives.

Moved a bunch of file utils from cryptohome::Platform to
libbrillo/file_utils.

BUG=chromium:557833
TEST=cros_workon_make cryptohome --test
TEST=cros_workon_make libbrillo --test
Change-Id: Ia5ee99a790ea010fc2cd0cac37bb100c81b3ca8c
Reviewed-on: https://chromium-review.googlesource.com/822614
Commit-Ready: Denis Kuznetsov <antrim@chromium.org>
Tested-by: Denis Kuznetsov <antrim@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
3 files changed