docker: replace inreplace with upstream patch.