ds_prefix and before_save hooks
before_remove hook for ds_remove/1
Run hooks in mutexed section