I've filed the bug with nvidia via their forum as suggested: https://devtalk.nvidia.com/default/topic/1031436/linux/390-25-2-regression-on-debian-hang-after-disabling-output-with-xrandr/