Fix OpenMP scope error

Change-Id: I5cea5df876a48e5868b5160170e8450e697f3b4b