Upcalls: Added mutex_locks to safeguard upcalls data structures.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>