Generalize patch to all platform integrating WoLpH/portalocker@141d45d