BOSTON, May 21 (Reuters) - A medical device company has agreed to pay $42 million and plead guilty to resolve U.S. charges that it concealed a malfunction in its lead-testing devices that resulted in thousands of children and other patients receiving inaccurate, low test results.