more changes to locks plugin and fixed getHTTPHeaders() to not send objects as values