The former. Especially Baltimore.
Enough has been pointed out that I regard the point as having been made. Lincoln had the Authority under the Constitution to suspend Habeas Corpus in case of Rebellion, and what was happening in Baltimore could fairly be called a Rebellion.
It still doesn't explain why he suspended it in all the other states later. Was the entire Union in rebellion too?