Marilyn J. Mosby, the former Baltimore City state's attorney convicted of making a false mortgage application and two counts of perjury, has received a nonprison punishment.