Looks like an engine bug — can't transfer prisoners when general stores are full. When I try to transfer prisoners to a base with overfilled stores, I get a message that there's no room, even though the cells were almost empty — only 2 prisoners. But after I sold some amount of corpses, I suddenly was able to transfer prisoners. (I used an extra mod that disables "Storage limit for recovered items".)