Aperiodic task handles locking and unlocking