Hi!
It seams like the lyr.setTextSelectable(false); is
inherited on all layers and not just on the layer that is
supposed(?) to be adjusted.
Try to have 2 textlayers and set the property on one of
them and you will see.
Contact me if you need some more info
/Daniel Tiru