trap-manager: Prevent deadlock when installing trap policies