Bail agents are almost non-existent in MA because the courts set the bail at an amount that is generally affordable rather than 10x that amount with the intent of fining the suspect by making him/her pay a non-refundable fee to an agent. What would get a $500 bail in MA would probably be something like $5000 in a bail bondsmen friendly state.
In a bail state the defendant would pay a bondsman $500 to guarantee the $5000. In MA, the defendant would pay $540 and get $500 back, with the $40 going to the bail magistrate. I think defense counsel has an automatic lien on the bail, and it cannot go to the defendant unless the attorney confirm (s)he has been paid.
Of course, both kinds of states have the bails that are set with the specific intention of being bail in name only, with no change the defendant can make it.