move a couple of functions into NERDTreeCreator

The "next buffer name" functions are only used in NERDTreeCreator so put
them there.
catch an error thrown when refreshing a dir with a FIFO or socket