Locking dipstick