Make reference frames are locked (increase reference counter)
UpdateRefList prepares the references for the next frame and
removes frames from the current list, when it removes it calls
If frame refCount is zero Free function is called
this function clears Locked member and the reference frame
could be used as new target frame
while still in use by HW decoder.