Use `bp_esc_like()` in `BP_XProfile_Query`.

`$wpdb->esc_like` was introduced in WP 4.0.0, and our wrapper provides backward
compatibility for earlier versions of WordPress.

See #5839.

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