Locks created by root should allow accesses from others

Some parts of cbuildbot stages run as root. This creates a race
condition that if a lock happens to be created by root in a build,
others would not be able access it. To prevent this from happening,
This change creates locks with mode 666.

BUG=chromium:312374
TEST=unittests

Change-Id: I3433fa16b3818a0d7937e17817b8e7f106e880c2
Reviewed-on: https://chromium-review.googlesource.com/174892
Reviewed-by: David James <davidjames@chromium.org>
Commit-Queue: Yu-Ju Hong <yjhong@chromium.org>
Tested-by: Yu-Ju Hong <yjhong@chromium.org>
1 file changed