[services] Bug 439495: Thread-safe access to user ID file.

Change-Id: I135c13ea2d097189f8c66abeaecaf7092ad5a294
Signed-off-by: Yasser Aziza <yasser.aziza@gmail.com>