Adapt BN_CTX_DEBUG to the new generic trace API