[FIX] ir_model: force reloading the registry when custom models/fields change

This forces the current process to fully reload the registry when custom models
or fields are created/deleted/modified.  This fixes a certain number of cases
where simply "patching" the registry is not enough; in particular the new API
fields are not correctly updated.

This fixes #1794.