initial pthread
mutex locks around each access of the capture sess
mutex locks around _last accesses.