Don't publish first and then try to patent. You've done yourself and the university a disservice. Patent it first. DL Scientists are inherently competitive. In the sponsored research world, even if you exclude technology transfer, it's naive to think that there's not already plenty of competition.
Technology transfer is just a different kind of competition.
I think that these concerns are overblown by people who don't fully understand what's involved in both sponsored research and in technology transfer. While technology transfer certainly involves some restrictions, I don't see it as a major paradigm shift relative to what we have right now. Another concern is that commercial forces might warp priorities away from basic science and toward more market-oriented research. DL People who accept faculty positions at research universities are generally passionate about their research. There's always going to be a subset of these individuals who, for a variety of reasons, want to pursue a commercialization opportunity.