Free locked submissions when confirming the logout dialog
When a user is logged in and tries to close the browser/tab they are prompted if they really want to exit. Currently, when a user decides to exit, nothing happens. We can use the callback to free all locked submission before a user really logs out.