Fix SIGSEGV on ulsynchronized bitmap manipulation