add video buffer lock/unlock API