Bun B’s would-be robber has been sentenced to 40 years in prison for his attempted burglary of the UGK legend at his Houston home five years ago.