Introduce `bp_core_mark_all_notifications_by_type()` and replace `bp_core_delete_all_notifications_by_type()` usages. Ensures notifications are toggled as acknowledged rather than deleted. See #5148.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7529 cdf35c40-ae34-48e0-9cc9-0c9da1808c22