Created lock_sim900_socket that incorporates locking into methods. Changed socket_server to pass down locks to class from lock_sim900_socket. This is to prevent two methods trying to connect to one socket (which will cause one to crash).