Fix for issue regarding period cannot be closed because of unreleased documents.

Order To Cash: Customer Ledger Version 10.85

Previously, when starting simultaneously processes like Process Orders and Release customer documents, the system would get in a concurrency issue and the documents were getting wrong status. This has now been fixed.