ip: refactor ip4_mtrie to atomically unset leaves