There must be some interesting report to be had on how design can kill if that is what went wrong.
It's a fun exercise think about how this kind of failure can be compensated while always having to ask, what if that compensation also fails.
The flight computer could easily work out that the wing can only be unlocked AFTER the violent acceleration only during a complete free-fall, but then it's no problem thinking of a hundred ways that computer could fail. Plus you probably want a manual override anyway to the lock etc.
If that was actually my job I'd never sleep easy.