Reference self in a block-safe manner.