st/dri: implement the fence interface