Click on the message thread, click on the sender at the top of the thread, select "info" for the contact, at the bottom select "block". Not obvious, I'll agree, but you can definitely block it (it should be a much shorter path). This works for iMessages and SMS.