Mackey topologies, reproducing kernels, and diagonal maps on the Hardy and Bergman spaces