Core: Drop UnsafeUtils.

This class potentially does unaligned memory access and does not bring much
now that we switched to global ords for terms aggregations.

Close #6962
Build: Remove UnsafeUtils from forbidden-apis exclusion list.