[PATCH 5.1 072/371] ipset: Fix memory accounting for hash types on resize