I found the real reason for RAL model getting stuck.
Beside using regmodel.reg_name.write() or read(), I was also sending transactions from another process using start_item()-wait_some_delay-randomize-finish_item().
Of course, the problem was the delay between start_item() and finish_item(), which should never be used! After removing the delay, everything worked.