Galaxy clusters in the line of sight to background quasars. I. Survey design and incidence of MgII absorbers at cluster redshifts