ntdll: Add helpers to lock the user output buffer during file reads.