plugins/resman: Fix 2da shutdown issue...

Turns out rules are unloaded on module close, reloaded, then
unloaded again on server close...  So if you have 2da's that impact
the global 2da cache like iprp_costtable, it's in resman but one of
it's entries isn't... will cause a segfault.