[aot] Add a separate mutex to each AOT module to reduce contention.