DecoderInterface: remove surface pool related dead code
common: add lock and condition wrapper
decsurfacepool: refacting to remove unused functions