Small fixes on crop and delete

Properly handle the case when decoders are not enabled.
Use a lock when accessing data.