How to add a filter to the get_body_class function?

The body_class() function simply calls the get_body_class() and creates a HTML class string from it.

function body_class( $class="" ) {
    echo 'class="' . join( ' ', get_body_class( $class ) ) . '"';
}

So, the body_class filter applies to both functions.