compat: cleanup coding in compat_get_bitmap() and compat_put_bitmap()