core: Make wcore_display_init() thread-safe
core: Make wcore_display_init() thread-safe

Protect the static variable 'id_counter' with a mutex.

Signed-off-by: Chad Versace <a557f7f75bf28dc19ac99107f5cc7cd6b3fbdb1a@linux.intel.com>

evelikov/waffle,janesma/waffle,fjhenigman/waffle,janesma/waffle,chadversary/waffle,chadversary/waffle,fjhenigman/waffle,evelikov/waffle,maurossi/waffle,janesma/waffle,dcbaker/waffle,waffle-gl/waffle,chadversary/waffle,waffle-gl/waffle,dcbaker/waffle,evelikov/waffle,maurossi/waffle,waffle-gl/waffle,yinquan529/waffle-gl-waffle,dcbaker/waffle,maurossi/waffle,yinquan529/waffle-gl-waffle,fjhenigman/waffle,waffle-gl/waffle,yinquan529/waffle-gl-waffle