A door lock with a video camera could set the iPhone maker up to compete with Google's Nest and Amazon's Ring.