Prevent blocks to reinitialize during destructing

Port of bem/bem-core#518

\cc @dfilatov @tadatuta