client.shared.base_utils: Add log_last_traceback function

This function can be used to log the last traceback.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>