A nightcap may force the body to work harder at repair during sleep, making for a less restful night. Katherine Harmon reports