[pvr] refactor CPVRRecording::UpdateMetadata to minimize opening
and closing of the video database and to ensure the database is
always closed once opened
Merge pull request #4399 from Jalle19/missing-db-close

[pvr] add missing database close call