Hi, Walt,
The whole problem is that if the breech is allowed to open with high pressure in the chamber, the brass case will fail and harm the gun or the shooter.
But I was probably over-simplifying. Yes, initial motion of the breechblock in a blowback system begins when the powder gas builds up pressure. But the breechblock is balanced so that its own inertia keeps it from moving very much if at all until the bullet has left the barrel. With low power cartridges, and a longer barrel, as in a .22 rifle, the breechblock is balanced to keep from opening before pressure drops, even though the bullet may not actually have left the barrel. Some designers have taken advantage of the initial blowback motion to create a sort of delayed blowback system, such as the one Pedersen used in the Remington Model 51.
In a locked breech pistol, the longer barrel adds weight. Since the barrel is locked to the breechblock, the entire mass resists the recoil force, so a longer barrel balances out. Of course, if the barrel is too long (heavy), the recoil will be insufficient and the gun will not work. This is what happens when someone tries to put a 16" barrel and shoulder stock on a 1911 type pistol; the result is usually not reliable.
How does the gun know the bullet has exited? It doesn't of course, and the pressure drop has nothing to do with it. The gun designer balances the gun to operate within a rather narrow set of ammunition parameters. If someone, say a handloader, goes outside those parameters, the gun may malfunction or be destroyed, depending on whether the load failed to reach the minimum parameters or exceeded the maximum.
Can a powerful cartridge be used in other than a locked breech mechanism? Yes, Astra proved it with the 9mmP and 9mm Largo a long time ago, and High Point does it with both 9mmP and .45 ACP, cartridges that would normally require a locked breech. But you don't get a free lunch; Astra springs would do justice to a Ford truck, and the High Point slides are massive, making the guns awkward and heavy.
Jim