No, I know it won't work.
Installing a different carrier's OS has absolutely no effect on the network lock whatsoever.
If you want to use an AT&T branded device on T-Mobile, you need to purchase an unlock code.
GSM PhoneSource - When Only The Best Will Do is a good place to go.