fixed countDownLatch behaviour when called with no arguments. Now calling with no arguments sets its capacity to 1, behaving like $.Deferred().