[PATCH 6.6 164/331] pmdomain: mediatek: fix race conditions with genpd