Closes #54
As noted by @koekeishiya on yabai#714, it seems a bug was introduced in Big Sur which causes `read` calls to track buffers incorrectly. These changes (taken from koekeishiya/yabai@4f8be49) work around this. Closes #41