Added buf_lock and buf_unlock APIs in copycodec and yuvcopy test cases.