Hello Priya,
Its get locked due to incorrect logon right?
after upgrade the there are few basis steps needs to be performed which include RFC.
not sure about how huge is your landscape. but you have to sync password in all target system.
there might be other rfc or something which use same RFC user , but has old password which lock the user. find it out and sync password for that.
Regards,
Prasant