Fix PHP 5.4 static method call warnings in bp-messages-classes.php. See #5108.

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