add clean() to mock (for thrift 0.8.0 or later)
add clean() for recent thrift if