I was unable to find the cause so far, but font-lock seems to work only when the buffer is visible. So, I made a patch for a makeshift. (The following part should also be fontified.)