Unlocking Post-hoc Dataset Inference with Synthetic Data