fix btp_thread_parse_funs for functions with spaces

Demangled C++ function names may contain space. Fix the parser to search
for the last space instead of first to find the library name.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>