CodeBrain: Impute Any Brain MRI via Instance-specific Scalar-quantized Codes