trigger: do not allow any changes on a trigger when it is currently running (closes #189)

(cherry picked from commit d1b4281d204ad3c3b53d3ddd9125cac1bfc4af14)