Users are receiving the RECORD LOCKED issue from stock tables if any bulk upload is happing through batch

SOLVED

Users are receiving the RECORD LOCKED issue from stock tables if any bulk upload is happing through batch

This issue triggers when doing batch import of sales invoice and return.

Every day end up to 6000 sales invoice and return entries imported into system by multiple batch process.

While importing sales invoice and return for one product with same site even with different warehouse system locks the record and entry not created.

Is there any way to update record lock logic  while locking record , along with product and site system consider warehouse?