Change custom wait events to use dynamic shared hash tables