md: remove sparse warnings about lock context.