Avoid a deadlock when installing a trap policy failed