Hello!
Good to know it's works for you, but unfortunately this solution is useless for Ubuntu Gnome 17.04 and Lenovo ThinkPad USB 3.0 Dock (model DU9019D1) combination -
screen just stay black. I guess soon you could get same issue with Ubuntu 16.04.3 (which include kernel and Xorg from 17.04).