This patch fixes T90715. Previously attempting to remove a particle modifier programmatically through Python failed, because it didn't remove the supplied modifier. Instead it deleted the modifier associated with the currently active particle system.
The patch adds an additional argument for the particle system to object_remove_particle_system. This allows to specify which particle system and its associated modifier shall be removed. In case of particle_system_remove_exec it can remain the currently active particle system, whereas object_remove_particle_system can pass the particle system of the modifier.