search: removed redundant getAllowedChromaDir function call
search: removed redundant context store
sao: refine sao merge mode
sao: move lossless sample restoration functions to framefilter.cpp

These are only called by the framefilter code, and are not directly related to
SAO itself.