Whether it’s midnight cravings or an early-morning bite, these Massachusetts restaurants are always ready to serve.