Patching Libraries to Instrument Downstream Calls