timeshift: Reworked mutex locking in timeshift_filemgr.c