Front ported fix for bug CORE-4372 : Deadlock is possible when two data pages contains record fragments pointing to each other


git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@59595 65644016-39b1-43b1-bf79-96bc8fe82c15
Front ported:
1. Improvement CORE-4431 : Reduce contention for allocation table lock while database is in stalled physical backup state
2. Improvement CORE-4432 : Let attachments to not block others when allocation table is read first time
3. On Windows, file can not be deleted while system writes cached data into it, even if file is not open by anyone.
Therefore flush delta file implicitly before closing it.


git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@59596 65644016-39b1-43b1-bf79-96bc8fe82c15
Front ported fix for bug CORE-4433 : GlobalRWLock could not downgrade EX lock to SH if readers is present


git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@59597 65644016-39b1-43b1-bf79-96bc8fe82c15
Correct format specifiers

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@59598 65644016-39b1-43b1-bf79-96bc8fe82c15
Cleanup 


git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@59600 65644016-39b1-43b1-bf79-96bc8fe82c15
Cleanup convert function NOT_USED_OR_REPLACED

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@59601 65644016-39b1-43b1-bf79-96bc8fe82c15