The type of subsetting is not yet implemented in the subset operator yet.
But you can first subset your data to the bounding box and afterwards.
Check these posts:
Why the mask provides no data I don’t understand.
Have you tried this?
my_real_mask.getPixels(0,0,w,h, data)