Fixed NULL file logging bugs and disabled lockstat monitoring by default