FLEX+DMFT approach to the $d$-wave superconducting phase diagram of the two-dimensional Hubbard model