Try to lock task with a select no wait before updating it to reserved, this way threads and waiting on echother.