code: function isTaskLocked(task) {
    if(task.semaphore) {
      if(!task.semaphore.ttl) {
        throw new TypeError('TimeToLiveNotPresent');
      }
      return ( (timestamp() - task.semaphore.time) < task.semaphore.ttl );
    }
    return false;
  }
docs: Is the given task locked?
  -------------------------
  @param {Task} task
  @return {bool}
  @throws {TypeError}