[TASK] Register media tstamp in SYS_LASTCHANGED register

The tstamp of the media records is now registered in the
SYS_LASTCHANGED register during rendering. This makes sure that
when a media record is updated the SYS_LASTCHANGED timestamp
is correctly updated.