A kernel log-rank test of independence for right-censored data