[PATCH openEuler-1.0-LTS v2] ima: fix deadlock when traversing "ima_default_rules".