Bug Fix for QP-11
https://bito.atlassian.net/browse/QP-11
Summary by Bito
This pull request addresses critical thread safety issues and input validation flaws in the cart service. It implements robust fixes including enhanced input validations and a thread-safe mechanism using reentrant locks. The changes prevent race conditions and ensure reliable operation under concurrent access.Edited by Akshay Samal