Suppress tracebacks in states which manage files

This captures exceptions encountered in states that run file.get_managed
or file.manage_file, suppressing the traceback and instead returning a
False result for the state, with a meaningful error message.

Fixes #9232.