During midlife, adequate sleep is more important—and rarer—than ever. Here’s how to get the shuteye you need.