In configureLocksInBdBlock @ lib/Targets/AIERT.cpp we force every block to have a lock-acquire and lock-release before and after the bd directive, but the BD allows for those two fields to be configured as "do not acquire/release a lock".
As it is, that assert forces us to acquire locks that are initialized as "open", and nobody is releasing; and likewise, release locks that nobody will every wait for. We should relax (or remove) that assertion and, when a release/acquire is missing, configure it as "do not release/acquire".