That was another mistake, don't take legal advice from anyone but a lawyer LICENSED in your state.
You see, he already should have known that once the locks were applied ILLEGALLY, he would be foolish to break the locks and enter.
That, my new friend, is what is called "self help", it rarely ends well for the actor.
The landlord was DUMB like a fox.
He or she set a trap that MOST people just can't resist.
I am glad I EARNED my law dgree, and I've spent my entire adult life helping people unravel stuff like this.
Never use a self help remedy, the system is rigged to USE government supplied services.
I don't worry about the why, I simply accept the whatever it is.
That said, he pleads NOT guilty, asks the judge if he qualifies for a public defender, and he keeps his yapper closed.
He and you should ONLY tell what you know to his lawyer.
He will win the ILLEGAL lockout, unless something is unknown to you and me.
If things about the lock out are EXACTLY as you recite, that's a sure winner.
I mean, CASH money.
As far as the criminal charges, if the first officer tells the truth, he has a very good chance at winning the burglary/trespassing (or whatever crappy charge they slapped on him), and he might even beat the resisting.
He has to remain cool, look humble and confused, and pretend to believe in a rigged system.
You also need to leave race related remarks out of this (all races and ethnicities will be on the jury, don't pis soff people who will help you), don't post to social media, don't give details to friends, mum is the word.
But, he has two bigger, more immediate problems.
Getting out of jail, and retrieving his belongings.
He can ask his defense lawyer.public defender about legal services in your area, or often public defenders will help him beat that case, too.
Keep us looped in as this progresses, and keep the faith.