ex_cmds2: Replace get_cmd_output by os_system in find_locales
ex_cmds2: Add a spec file and a find_locales test
message: enable mocking `emsg`
buffer_spec: Modify to collect messages during tests