Tighten up issues around _bt_check_unique heap visibility