Introduces bp_get_the_thread_message_id()

This convenience function makes it easier to access the numeric ID of the
current message in the thread.

Fixes #5123

Props dtc7240

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