MDL-40266 improve emulate_bound_params() for mysqli