common/module: add patient module rmmod support