fixups, and refactoring some of code

locks, irql, vadscanner,libc, autoobref