feat: Implement thread copying with deep checkpoint replication and refactor checkpointing to use a singleton base.