Optimality of threshold policies in single-server queueing systems with server vacations