Update ajax.php

Ensure aquireLock doesn't interfere with renew/release
Merge pull request #335 from clonemeagain/patch-4

Update ajax.php

Reviewed-By: Peter Rotich <peter@osticket.com>
Parses InlineImages for index.php

Otherwise the <img> doesn't get the correct uri for the image.

Reviewed-By: Jared Hancock <jared@osticket.com>
IE8 Fix: SCRIPT1028 - Expected identifier, string or number
Merge remote branch 'upstream/develop' into develop-next