Hi Holger!
I'm currently reviewing changeset 2d501ea26a219176b1c556449e45ebd90d4accfb and just noticed that you introduce a new 'int rf_locked' member to struct gsm_bts_trx, which I believe is not needed.
We are already tracking the administrative state of all objects in the BTS and mirror their state.
The specific state you are looking for should be in gsm_bts_trx.nm_state.administrative
I would appreciate if you could fix this.