Logan James Barnhart, who graced the covers of romance books like “Stepbrother UnSEALed: A Bad Boy Military Romance,” was sentenced to three years, prosecutors said.