pal: add init ref cnt to avoid duplicated initialization of pal

Avoid duplicated initialization of pal if init is already done.

Change-Id: I4a9cf93ae652760b75502b5fa028da7cf92bece2
(cherry picked from commit f5b9c72f943babd74f048ed9034ad577fd3b5b66)
1 file changed