When using asset_mark function from a python script and afterwards updating the preview image,
a crash might happen. The preview image is also generated by the asset_mark function. This could happen
on a background thread, introducing potential synchronization issues.
This patch fixes this by separating the preview generation ID.asset_generate_preview from the mark as
asset ID.asset_mark.