Queueing models of predation and the importance of contingent behavioural choices for optimal foragers