SLING-3391 Don't get stuck if event does not arrive

Timeout is specified in seconds not milliseconds. So asking for 5000 essentially
waits 5000 seconds or almost 1.5h for an event to not arrive

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1568208 13f79535-47bb-0310-9956-ffa450edef68