mraa: add deinit function for valgrind testing

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>