How can two users share the same connection?
I'd need to know what your insert looks like, what the table schema is, and what the exact error messages are, hopefully including the stack trace.
Possibly you are using the same connection among multithread. I think you need to add lock(conn) to execute the CURD operation. Thus can avoid the database lock issue.