reverting commit 0690dbd
define mutex in model class
we don't need the mutex definition in the meta code
lock and unlock mutex around fortran function calls
a std::mutex is enough, no need for std::recursive_mutex