Continuation of https://gitlab.winehq.org/wine/wine/-/merge_requests/5593.
Removing HBITMAP objects revealed some bugs in the software path for linecaps. It also led to using the stride passed in (instead of using the stride a DIB would have), which is actually invalid in one of our tests and native ignores it.