Protect hash in FmFolder with mutex therefore make API thread-safe.