Assert that magazine entry count is 0 at `close`.

Assert that the magazine has no held locks using the entry count instead
of the total magazine heft.

Closes #269.