Set process_thread_id variable based on the RUBY_ENGINE variable

The current logic to set the process_thread_id based on the hash of pid and thread id breaks up in a multi process environment like unicorn.