Impact of fully coherent energy loss on heavy meson production in pA collisions