use for update lock when updating stock entries