ids-functions.pl: Add code to lock/unlock ids page while autoupdating the ruleset