[PATCH v2 5/7] ntdll: Factor out some view manipulation functions.