[mythtv-cmyth] Use RAII pattern in MythEventHandler
[mythtv-cmyth] Use RAII pattern in FileOps
[mythtv-cmyth] Use RAII pattern in GetRecordingsAmount and GetRecordings