Normally, a mal instance is not reentrant. Follow the steps to get multiple mal instance which is protect with a common mutex.
prepare a common mutex instance for malA
in each task which will asscess malA, implement a vk_reentrant_mal_t instance. mal member points to malA, mutex member points to the common mutex in step 1, offset member is the byte offset in malA, size member of vk_mal_t is the size of the reentrant mal instance.
each vk_reentrant_mal_t instance in each task will be protected by the common mutex.