Fix return type for instance bsearch.
Revised msig_get_instance_with_local_id() for persistent ids.