EnableWith enables and locks the failpoint, the lock prevents the failpoint to be evaluated. It invokes the action while holding the lock. It is useful when enables a panic failpoint and does some post actions before the failpoint being evaluated.
(inTerms string, action func() error)