fix: overriding virtual function differs from 'osl::Thread::terminate'

Change-Id: Ic291f9cdc7413d125a79a1e79ef8215de32bce3b