Fix several usrloc named flag issues

- fix get_all_db_ucontacts() lookup logic to work with named flags
- fix "Cflags" row of MI *ul_dump* command
- fix DB contact update function to properly store the flags
(cherry picked from commit b33d4b3f019c157a5e63b21a846ad9f891da559e)