Merge "hal: Fix race condition in parsing platform info xml"