Find and kill the ghost lady (which you must have already done to enter nekomata form) and hold down and space bar. That will allow you to phase for a few seconds. To the bottom right of the ghost lady's room is some metal bars, so long as you are phased you can go through those.
You can see it in the picture of the ghost lady in the preview pics.