update zs_free to take class lock before checking fullness