lib: Release big lock before popen.

mosys and flashrom shares same lock, and will hang if we try to execute
flashrom from mosys. lib/flashrom/flashrom.c solves this by releasing
and re-acquire biglock before and after spawning flashrom.

Chassis identifier in probe.c also calls vpd_get_value, which may invoke
'vpd' -> 'flashrom' if cache is not available, so we have to handle
locks in same way.

BRANCH=None
BUG=chromium:687149
TEST=VPD_IGNORE_CACHE=1 mosys platform chassis

Change-Id: I2189444f75726f99a39b466377dcdba8000dcd72
Reviewed-on: https://chromium-review.googlesource.com/440750
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
1 file changed