HPCC-9221 Deleting package from roxie will cause query to hang

This is a regression caused by recent changes to package reload code, and does
not affect any released version.

This change will fix the deadlock - however I will revisit the question of
whether the critsec that causes the deadlock is really required.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>