[PATCH v4 1/6] mem2mem: Require capture and output mutexes to match