modules: use MAXCUSTOMHOOKS for the overrun guard, not an outdated magic number (CID#1108002)