add the ability to lock entities against purging