Counting a loop

bullroarer:
I understand because my servo will be changing a value the whole time it is rotating

The servo does not change values. When you tell the servo to move to (say) 85 degrees with servo.write(85) you have no means of knowing whether it has got to 85 or is still only at 79. Servo.read() will only tell you that you last told it to move to 85degrees - which you already knew.

Normally servos move quickly from one position to the next so it is safe to assume if you say servo.write(85) that it is at 85 degrees.

I would break your code into two functions - a bit like this

void rfid()  {
   if (lockPos == locked) {
      lockPos = unlocked;
  }
  else {
        lockPos = locked;
  }
)

void moveLock() {
   deadlock.write(lockPos);
}

...R