Our other 307, (other daughter's partner has a 52-plate 1.6 HDi estate), has now died.

He's had a few BSI sounding glitches recently, engine cutting out, lights etc. but last Friday it stopped altogether and refused to budge.
They got the RAC out, who diagnosed a dead lift pump, (sounded convincing since he got it going briefly by thumping the tank), got it recovered home.
He fitted an new lift pump this morning and it started, but ran rough & wouldn't idle, EML on.
I plugged in PP2k and noticed that instead of the VIN it displayed bpbpbpbbpbpb, (or similar).
Engine ECU status is 'ECU Locked', (waiting on comms from BSI).
BSI says the same, plus in status it says, "Blank BSI.................................YES"
Now, I didn't think it was possible to 'unconfigure' the BSI without replacing an eprom/eerom or similar.
Anybody got any clues what else we can try? I'm thinking get an engine ecu/bsi/lockset and keys from a scrappy, but I'd welcome any other suggestions.